package nju.firework.game.cell;

import nju.firework.game.main.MainActivity;
import nju.firework.scene.MapElement;

public class CellFactory {

	public static Cell createCell(float pX, float pY,MainActivity mainActivity, MapElement m){
		
		switch(m){
		case FLOOR:
			return new Floor(pX,pY,mainActivity);
		case BLOCK:
			return new Block(pX,pY,mainActivity);
		default:
			return null;
		}
	}
}
